<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<!--头部导航-->
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" th:fragment="navbar">
    <a class="navbar-brand" href="#" th:href="@{/}">邱道长</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item" th:each="obj:${categories}">
                <a class="nav-link"  href="#" th:href="@{'/category/get/' + ${obj.categoryId}}" th:text="${obj.name}"></a>
            </li>
            <!--<li class="nav-item dropdown">-->
            <!--<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">-->
            <!--大数据-->
            <!--</a>-->
            <!--<div class="dropdown-menu" aria-labelledby="navbarDropdown">-->
            <!--<a class="dropdown-item" href="#">Hadoop</a>-->
            <!--<a class="dropdown-item" href="#">Hbase</a>-->
            <!--&lt;!&ndash;<div class="dropdown-divider"></div>&ndash;&gt;-->
            <!--<a class="dropdown-item" href="#">Spark</a>-->
            <!--</div>-->
            <!--</li>-->
            <!--<li class="nav-item">-->
            <!--<a class="nav-link" href="#">MySQL</a>-->
            <!--</li>-->
        </ul>
        <form class="form-inline my-2 my-lg-0">
            <input class="form-control mr-sm-2" type="search" placeholder="搜索内容..." aria-label="Search">
            <button class="btn btn-outline-success my-2 my-sm-0" type="submit">道一下</button>
        </form>
    </div>
</nav>